<?php
session_start();

if ($row['password'] == $pas) {
 $_SESSION['username'] = "wangyipeng";
 echo "<script>
 alert('登录成功！正在跳转...')
</script>";
 echo "<a href='index.php'>如果跳转失败请点击跳转~~</a>";
 header("Refresh:1;url=index.php");
}
